const Layout = () => import("@/layout/index.vue");

export default {
  path: "/risk-disposal",
  name: "risk-disposal",
  component: Layout,
  redirect: "/risk-disposal/work-order",
  meta: {
    icon: "setting",
    title: "风险场景处置与通告",
    roles: ["admin"],
    rank: 4,
  },
  children: [
    {
      path: "/risk-disposal/work-order",
      name: "work-order",
      component: () => import("@/views/risk-disposal/work-order/index.vue"),
      meta: {
        title: "0A工单推送",
        showLink: true,
        showParent: true,
      },
    },
    {
      path: "/risk-disposal/risk-assessment",
      name: "risk-assessment",
      component: () => import("@/views/risk-disposal/risk-assessment/index.vue"),
      meta: {
        title: "风险评估",
        showLink: true,
        showParent: true,
      },
    },
    {
      path: "/risk-disposal/risk-assessment/asset-detail",
      name: "asset-detail",
      component: () =>
        import("@/views/risk-disposal/risk-assessment/components/AssetDetails.vue"),
      meta: {
        title: "资产风险详情",
        showLink: false,
      },
    },
    {
      path: "/risk-disposal/data-push",
      name: "data-push",
      component: () => import("@/views/risk-disposal/data-push/index.vue"),
      meta: {
        title: "态势感知平台数据推送",
        showLink: true,
        showParent: true,
      },
    },
    {
      path: "/risk-disposal/ip-detail",
      query: {
        ip: "",
      },
      name: "ip-detail",
      component: () => import("@/views/risk-disposal/ip-detail/index.vue"),
      meta: {
        title: "IP详情",
        showLink: false,
      },
    },
  ],
} as RouteConfigsTable;
